import { mockApi } from "@/mock";
import type { ApiConfig, ApiQuery, ApiResponse } from "@/types/api";

export const getApiList = (params: ApiQuery) => {
  return mockApi.getApiList(params);
};

export const createApi = (data: Omit<ApiConfig, "id">) => {
  return mockApi.createApi(data);
};

export const updateApi = (id: number, data: Partial<ApiConfig>) => {
  return mockApi.updateApi(id, data);
};

export const deleteApi = (id: number) => {
  return mockApi.deleteApi(id);
};

export const testApi = (id: number) => {
  return mockApi.testApi(id);
};
